License.fromJson constructor

License.fromJson(
  1. Map json_
)

Implementation

License.fromJson(core.Map json_)
    : this(
        chargesUseFee: json_.containsKey('chargesUseFee')
            ? json_['chargesUseFee'] as core.bool
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        licenseCode: json_.containsKey('licenseCode')
            ? json_['licenseCode'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        resourceRequirements: json_.containsKey('resourceRequirements')
            ? LicenseResourceRequirements.fromJson(
                json_['resourceRequirements']
                    as core.Map<core.String, core.dynamic>)
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        transferable: json_.containsKey('transferable')
            ? json_['transferable'] as core.bool
            : null,
      );