GoMailerConfig.fromMap constructor
Implementation
factory GoMailerConfig.fromMap(Map<String, dynamic> map) {
return GoMailerConfig(
apiKey: map['apiKey'] ?? '',
baseUrl: map['baseUrl'] ?? 'https://419c321798d9.ngrok-free.app',
enableAnalytics: map['enableAnalytics'] ?? true,
logLevel: GoMailerLogLevel.values[map['logLevel'] ?? 1],
);
}