FirebaseOptions.fromMap constructor
FirebaseOptions.fromMap(
- Map map
Named constructor to create FirebaseOptions from a Map.
This constructor is used when platforms cannot directly return a
FirebaseOptions instance, for example when data is sent back from a
MethodChannel
.
Implementation
FirebaseOptions.fromMap(Map map)
: this(
apiKey: map['apiKey'],
appId: map['appId'] ?? map['googleAppID'],
messagingSenderId: map['messagingSenderId'] ?? map['gcmSenderID'],
projectId: map['projectId'] ?? map['projectID'],
authDomain: map['authDomain'],
databaseURL: map['databaseURL'],
storageBucket: map['storageBucket'],
measurementId: map['measurementId'],
trackingId: map['trackingId'],
deepLinkURLScheme: map['deepLinkURLScheme'],
androidClientId: map['androidClientId'],
iosClientId: map['iosClientId'],
iosBundleId: map['iosBundleId'],
appGroupId: map['appGroupId'],
);