MetaData.fromJson constructor

MetaData.fromJson(
  1. String key,
  2. dynamic value
)

Creates a MetaData from a key and its value. A single value is wrapped in a list.

Implementation

MetaData.fromJson(String this.key, dynamic value)
    : value = value is List ? value : [value];