ContactMethod.fromJson constructor
ContactMethod.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ContactMethod.fromJson(Map<String, dynamic> json) {
return ContactMethod(
arn: json['arn'] as String?,
contactEndpoint: json['contactEndpoint'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
location: json['location'] != null
? ResourceLocation.fromJson(json['location'] as Map<String, dynamic>)
: null,
name: json['name'] as String?,
protocol: (json['protocol'] as String?)?.toContactProtocol(),
resourceType: (json['resourceType'] as String?)?.toResourceType(),
status: (json['status'] as String?)?.toContactMethodStatus(),
supportCode: json['supportCode'] as String?,
);
}