DisplayProperty.fromJson constructor
DisplayProperty.fromJson(
- 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();
}
}