SipMediaApplication.fromJson constructor
SipMediaApplication.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SipMediaApplication.fromJson(Map<String, dynamic> json) {
return SipMediaApplication(
awsRegion: json['AwsRegion'] as String?,
createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
endpoints: (json['Endpoints'] as List?)
?.whereNotNull()
.map((e) =>
SipMediaApplicationEndpoint.fromJson(e as Map<String, dynamic>))
.toList(),
name: json['Name'] as String?,
sipMediaApplicationId: json['SipMediaApplicationId'] as String?,
updatedTimestamp: timeStampFromJson(json['UpdatedTimestamp']),
);
}