ClientEvent.fromJson constructor

ClientEvent.fromJson(
  1. Map json_
)

Implementation

ClientEvent.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        eventId: json_.containsKey('eventId')
            ? json_['eventId'] as core.String
            : null,
        extraInfo: json_.containsKey('extraInfo')
            ? (json_['extraInfo'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        jobEvent: json_.containsKey('jobEvent')
            ? JobEvent.fromJson(
                json_['jobEvent'] as core.Map<core.String, core.dynamic>)
            : null,
        parentEventId: json_.containsKey('parentEventId')
            ? json_['parentEventId'] as core.String
            : null,
        requestId: json_.containsKey('requestId')
            ? json_['requestId'] as core.String
            : null,
      );