fromJson method

  1. @override
List<Text> fromJson(
  1. Map<String, dynamic> json
)

Implementation

@override
List<Text> fromJson(Map<String, dynamic> json) {
  return json.entries.map((e) {
    final data = (e.value as Map<String, dynamic>)
      ..putIfAbsent('key', () => e.key);
    return Text.fromJson(data);
  }).toList();
}