ImClient.fromJson constructor

ImClient.fromJson(
  1. Map json_
)

Implementation

ImClient.fromJson(core.Map json_)
    : this(
        formattedProtocol: json_.containsKey('formattedProtocol')
            ? json_['formattedProtocol'] as core.String
            : null,
        formattedType: json_.containsKey('formattedType')
            ? json_['formattedType'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? FieldMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        protocol: json_.containsKey('protocol')
            ? json_['protocol'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
      );