SesConfig.fromMap constructor
Creates an SesConfig from a map.
Expected keys:
keysecretregion(optional, defaults tous-east-1)endpoint(optional)
Example:
final config = SesConfig.fromMap({
'key': 'AKIA...',
'secret': 'super-secret',
'region': 'us-east-1',
});
Implementation
factory SesConfig.fromMap(Map<String, dynamic> map) {
return SesConfig(key: map['key'], secret: map['secret'], region: map['region'] ?? 'us-east-1', endpoint: map['endpoint']);
}