SipRule.fromJson constructor
SipRule.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SipRule.fromJson(Map<String, dynamic> json) {
return SipRule(
createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
disabled: json['Disabled'] as bool?,
name: json['Name'] as String?,
sipRuleId: json['SipRuleId'] as String?,
targetApplications: (json['TargetApplications'] as List?)
?.whereNotNull()
.map((e) =>
SipRuleTargetApplication.fromJson(e as Map<String, dynamic>))
.toList(),
triggerType: (json['TriggerType'] as String?)?.toSipRuleTriggerType(),
triggerValue: json['TriggerValue'] as String?,
updatedTimestamp: timeStampFromJson(json['UpdatedTimestamp']),
);
}