Command.fromJson constructor

Command.fromJson(
  1. Map json_
)

Implementation

Command.fromJson(core.Map json_)
    : this(
        clearAppsDataParams: json_.containsKey('clearAppsDataParams')
            ? ClearAppsDataParams.fromJson(json_['clearAppsDataParams']
                as core.Map<core.String, core.dynamic>)
            : null,
        clearAppsDataStatus: json_.containsKey('clearAppsDataStatus')
            ? ClearAppsDataStatus.fromJson(json_['clearAppsDataStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        errorCode: json_.containsKey('errorCode')
            ? json_['errorCode'] as core.String
            : null,
        newPassword: json_.containsKey('newPassword')
            ? json_['newPassword'] as core.String
            : null,
        resetPasswordFlags: json_.containsKey('resetPasswordFlags')
            ? (json_['resetPasswordFlags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        startLostModeParams: json_.containsKey('startLostModeParams')
            ? StartLostModeParams.fromJson(json_['startLostModeParams']
                as core.Map<core.String, core.dynamic>)
            : null,
        startLostModeStatus: json_.containsKey('startLostModeStatus')
            ? StartLostModeStatus.fromJson(json_['startLostModeStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        stopLostModeParams: json_.containsKey('stopLostModeParams')
            ? StopLostModeParams.fromJson(json_['stopLostModeParams']
                as core.Map<core.String, core.dynamic>)
            : null,
        stopLostModeStatus: json_.containsKey('stopLostModeStatus')
            ? StopLostModeStatus.fromJson(json_['stopLostModeStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        userName: json_.containsKey('userName')
            ? json_['userName'] as core.String
            : null,
      );