CreateWatchRequest.fromJson constructor

CreateWatchRequest.fromJson(
  1. Map json_
)

Implementation

CreateWatchRequest.fromJson(core.Map json_)
    : this(
        watch: json_.containsKey('watch')
            ? Watch.fromJson(
                json_['watch'] as core.Map<core.String, core.dynamic>)
            : null,
        watchId: json_.containsKey('watchId')
            ? json_['watchId'] as core.String
            : null,
      );