Version.fromJson constructor

Version.fromJson(
  1. Map json_
)

Implementation

Version.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        isLegacy: json_.containsKey('isLegacy')
            ? json_['isLegacy'] as core.bool
            : null,
        rollbackSource: json_.containsKey('rollbackSource')
            ? json_['rollbackSource'] as core.String
            : null,
        updateOrigin: json_.containsKey('updateOrigin')
            ? json_['updateOrigin'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        updateType: json_.containsKey('updateType')
            ? json_['updateType'] as core.String
            : null,
        updateUser: json_.containsKey('updateUser')
            ? RemoteConfigUser.fromJson(
                json_['updateUser'] as core.Map<core.String, core.dynamic>)
            : null,
        versionNumber: json_.containsKey('versionNumber')
            ? json_['versionNumber'] as core.String
            : null,
      );