Runtime.fromJson constructor

Runtime.fromJson(
  1. Map json_
)

Implementation

Runtime.fromJson(core.Map json_)
    : this(
        decommissionedDate: json_.containsKey('decommissionedDate')
            ? Date.fromJson(json_['decommissionedDate']
                as core.Map<core.String, core.dynamic>)
            : null,
        deprecationDate: json_.containsKey('deprecationDate')
            ? Date.fromJson(json_['deprecationDate']
                as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        endOfSupportDate: json_.containsKey('endOfSupportDate')
            ? Date.fromJson(json_['endOfSupportDate']
                as core.Map<core.String, core.dynamic>)
            : null,
        environment: json_.containsKey('environment')
            ? json_['environment'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        stage:
            json_.containsKey('stage') ? json_['stage'] as core.String : null,
        supportedOperatingSystems:
            json_.containsKey('supportedOperatingSystems')
                ? (json_['supportedOperatingSystems'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        warnings: json_.containsKey('warnings')
            ? (json_['warnings'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );