CustomMetadata.fromJson constructor

CustomMetadata.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CustomMetadata.fromJson(Map<String, dynamic> json) {
  return CustomMetadata(
    stringValue: json['stringValue'],
    stringListValue: decode(json['stringListValue'], StringList.fromJson),
    numericValue: decodeDouble(json['numericValue']),
    key: json['key'] ?? '',
  );
}