GcmConfig.fromJson constructor
GcmConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GcmConfig.fromJson(Map<String, dynamic> json) {
return GcmConfig(
showGcmDescription: json['showGcmDescription'] as bool?,
gcmDescription: json['gcmDescription'] != null
? Map<String, String>.from(json['gcmDescription'] as Map)
: null,
defaultMapping: json['defaultMapping'] != null
? DefaultMapping.fromJson(json['defaultMapping'] as Map<String, dynamic>)
: null,
regionOverrides: json['regionOverrides'] != null
? (json['regionOverrides'] as Map).map(
(key, value) => MapEntry(
key.toString(),
DefaultMapping.fromJson(value as Map<String, dynamic>),
),
)
: null,
);
}