toJson method

Map<String, dynamic> toJson()

Converts this FirebaseConfig instance to a JSON map.

This method serializes the FirebaseConfig object into a JSON representation that can be easily stored or transmitted.

Returns a Map containing the 'apiKey', 'projectId', 'authDomain', 'storageBucket', 'messagingSenderId', 'appId', and 'measurementId' keys and their corresponding values.

Implementation

Map<String, dynamic> toJson() => {
      'apiKey': apiKey,
      'projectId': projectId,
      'authDomain': authDomain,
      'storageBucket': storageBucket,
      'messagingSenderId': messagingSenderId,
      'appId': appId,
      'measurementId': measurementId,
    };