PropertyAlert.fromJson constructor
PropertyAlert.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PropertyAlert.fromJson(Map<String, dynamic> json) => PropertyAlert(
uuid: json['uuid'],
position: json['position'],
image: PropertyContent<MediaResourceImage>.fromJson(json['image']),
headerText: PropertyContent<MediaResourceRichText>.fromJson(json['header_text']),
messageText: PropertyContent<MediaResourceRichText>.fromJson(json['message_text']),
buttonText: PropertyContent<MediaResourceRichText>.fromJson(json['button_text']),
);