WebAppConfig.fromJson constructor

WebAppConfig.fromJson(
  1. Map _json
)

Implementation

WebAppConfig.fromJson(core.Map _json)
    : this(
        apiKey: _json.containsKey('apiKey')
            ? _json['apiKey'] as core.String
            : null,
        appId:
            _json.containsKey('appId') ? _json['appId'] as core.String : null,
        authDomain: _json.containsKey('authDomain')
            ? _json['authDomain'] as core.String
            : null,
        databaseURL: _json.containsKey('databaseURL')
            ? _json['databaseURL'] as core.String
            : null,
        locationId: _json.containsKey('locationId')
            ? _json['locationId'] as core.String
            : null,
        measurementId: _json.containsKey('measurementId')
            ? _json['measurementId'] as core.String
            : null,
        messagingSenderId: _json.containsKey('messagingSenderId')
            ? _json['messagingSenderId'] as core.String
            : null,
        projectId: _json.containsKey('projectId')
            ? _json['projectId'] as core.String
            : null,
        storageBucket: _json.containsKey('storageBucket')
            ? _json['storageBucket'] as core.String
            : null,
      );