Asset.fromJson constructor

Asset.fromJson(
  1. Map json_
)

Implementation

Asset.fromJson(core.Map json_)
    : this(
        canonicalName: json_.containsKey('canonicalName')
            ? json_['canonicalName'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        iamPolicy: json_.containsKey('iamPolicy')
            ? IamPolicy.fromJson(
                json_['iamPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        resourceProperties: json_.containsKey('resourceProperties')
            ? json_['resourceProperties']
                as core.Map<core.String, core.dynamic>
            : null,
        securityCenterProperties:
            json_.containsKey('securityCenterProperties')
                ? SecurityCenterProperties.fromJson(
                    json_['securityCenterProperties']
                        as core.Map<core.String, core.dynamic>)
                : null,
        securityMarks: json_.containsKey('securityMarks')
            ? SecurityMarks.fromJson(
                json_['securityMarks'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );