decode static method

Property? decode(
  1. dynamic json
)

Implementation

static Property? decode(dynamic json) {
  if (json == null) {
    return null;
  }
  if (json is! Map<String, dynamic>) {
    return null;
  }

  return Property(
    name: StringDecoder.decode(json['name']),
    value: StringDecoder.decode(json['value']),
    ptype: PropertyTypeExtension.decode(json['ptype']),
  );
}