Resource.fromJson constructor

Resource.fromJson(
  1. Map json_
)

Implementation

Resource.fromJson(core.Map json_)
    : this(
        accessControl: json_.containsKey('accessControl')
            ? ResourceAccessControl.fromJson(
                json_['accessControl'] as core.Map<core.String, core.dynamic>)
            : null,
        finalProperties: json_.containsKey('finalProperties')
            ? json_['finalProperties'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        insertTime: json_.containsKey('insertTime')
            ? json_['insertTime'] as core.String
            : null,
        manifest: json_.containsKey('manifest')
            ? json_['manifest'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        properties: json_.containsKey('properties')
            ? json_['properties'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        update: json_.containsKey('update')
            ? ResourceUpdate.fromJson(
                json_['update'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
        warnings: json_.containsKey('warnings')
            ? (json_['warnings'] as core.List)
                .map((value) => ResourceWarnings.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );