Tag.fromJson constructor

Tag.fromJson(
  1. Map<String, Object?> json
)

Implementation

Tag.fromJson(Map<String, Object?> json)
    : order =
          ((v) => v != null ? (v as num).toDouble() : null)(json['order']),
      additionalProperties = Map.fromEntries(json.entries
          .where((e) => !['order'].contains(e.key))
          .map((e) => MapEntry(e.key, e.value as Object?)));