ReportStateAndNotificationRequest.fromJson constructor

ReportStateAndNotificationRequest.fromJson(
  1. Map json_
)

Implementation

ReportStateAndNotificationRequest.fromJson(core.Map json_)
    : this(
        agentUserId: json_.containsKey('agentUserId')
            ? json_['agentUserId'] as core.String
            : null,
        eventId: json_.containsKey('eventId')
            ? json_['eventId'] as core.String
            : null,
        followUpToken: json_.containsKey('followUpToken')
            ? json_['followUpToken'] as core.String
            : null,
        payload: json_.containsKey('payload')
            ? StateAndNotificationPayload.fromJson(
                json_['payload'] as core.Map<core.String, core.dynamic>)
            : null,
        requestId: json_.containsKey('requestId')
            ? json_['requestId'] as core.String
            : null,
      );