LabeledDisplayMappingObject.fromJson constructor

LabeledDisplayMappingObject.fromJson(
  1. dynamic jsonObject
)

Implementation

LabeledDisplayMappingObject.fromJson(dynamic jsonObject)
    : super.fromJson(jsonObject) {
  var map = credentialToMap(jsonObject);
  if (map.containsKey('label')) {
    label = map['label'];
  } else {
    throw Exception('label property needed');
  }
}