PropertyCard.fromJson constructor

PropertyCard.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PropertyCard.fromJson(Map<String, dynamic> json) => PropertyCard(
      uuid: json['uuid'],
      position: json['position'],
      defaultImage: PropertyContent<MediaResourceImage>.fromJson(json['default_image']),
      title: PropertyContent<MediaResourceRichText>.fromJson(json['title']),
      description: PropertyContent<MediaResourceRichText>.fromJson(json['description']),
      confirmationMessage: PropertyContent<MediaResourceRichText>.fromJson(json['confirmation_message']),
    );