SyncResponsePayload.fromJson constructor

SyncResponsePayload.fromJson(
  1. Map json_
)

Implementation

SyncResponsePayload.fromJson(core.Map json_)
    : this(
        agentUserId: json_.containsKey('agentUserId')
            ? json_['agentUserId'] as core.String
            : null,
        devices: json_.containsKey('devices')
            ? (json_['devices'] as core.List)
                .map((value) => Device.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );