Property.fromJson constructor

Property.fromJson(
  1. String parentId,
  2. Map<String, dynamic> json
)

Implementation

Property.fromJson(String parentId, Map<String, dynamic> json)
    : this.parentId = parentId,
      id = json['id'].toString(),
      name = ifNullReturnEmpty(json['name']),
      settable = json['settable'] == true,
      retained = json['retained'] == true,
      unit = ifNullReturnEmpty(json['unit']),
      datatype = ifNullReturnEmpty(json['datatype']),
      format = ifNullReturnEmpty(json['format']);