FirebaseProject.fromJson constructor

FirebaseProject.fromJson(
  1. Map json_
)

Implementation

FirebaseProject.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        projectId: json_.containsKey('projectId')
            ? json_['projectId'] as core.String
            : null,
        projectNumber: json_.containsKey('projectNumber')
            ? json_['projectNumber'] as core.String
            : null,
        resources: json_.containsKey('resources')
            ? DefaultResources.fromJson(
                json_['resources'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );