Watch.fromJson constructor

Watch.fromJson(
  1. Map json_
)

Implementation

Watch.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        errorType: json_.containsKey('errorType')
            ? json_['errorType'] as core.String
            : null,
        eventType: json_.containsKey('eventType')
            ? json_['eventType'] as core.String
            : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        target: json_.containsKey('target')
            ? WatchTarget.fromJson(
                json_['target'] as core.Map<core.String, core.dynamic>)
            : null,
      );