RequestMetadata.fromJson constructor

RequestMetadata.fromJson(
  1. Map json_
)

Implementation

RequestMetadata.fromJson(core.Map json_)
    : this(
        allowMissingIds: json_.containsKey('allowMissingIds')
            ? json_['allowMissingIds'] as core.bool
            : null,
        deviceInfo: json_.containsKey('deviceInfo')
            ? DeviceInfo.fromJson(
                json_['deviceInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        domain: json_.containsKey('domain')
            ? json_['domain'] as core.String
            : null,
        sessionId: json_.containsKey('sessionId')
            ? json_['sessionId'] as core.String
            : null,
        userId: json_.containsKey('userId')
            ? json_['userId'] as core.String
            : null,
      );