$Channel01.fromJson constructor

$Channel01.fromJson(
  1. Map json_
)

Implementation

$Channel01.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? json_['address'] as core.String
            : null,
        expiration: json_.containsKey('expiration')
            ? json_['expiration'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        params: json_.containsKey('params')
            ? (json_['params'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        payload: json_.containsKey('payload')
            ? json_['payload'] as core.bool
            : null,
        resourceId: json_.containsKey('resourceId')
            ? json_['resourceId'] as core.String
            : null,
        resourceUri: json_.containsKey('resourceUri')
            ? json_['resourceUri'] as core.String
            : null,
        token:
            json_.containsKey('token') ? json_['token'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );