DisplayProperty.fromJson constructor

DisplayProperty.fromJson(
  1. dynamic jsonObject
)

Implementation

DisplayProperty.fromJson(dynamic jsonObject) {
  var map = credentialToMap(jsonObject);
  if (map.containsKey('title')) {
    title = DisplayMappingObject.fromJson(map['title']);
  }
  if (map.containsKey('subtitle')) {
    subtitle = DisplayMappingObject.fromJson(map['subtitle']);
  }
  if (map.containsKey('description')) {
    description = DisplayMappingObject.fromJson(map['description']);
  }
  if (map.containsKey('properties')) {
    List tmp = map['properties'];
    properties =
        tmp.map((e) => LabeledDisplayMappingObject.fromJson(e)).toList();
  }
}