Help.fromJson constructor
Help.fromJson(
- Object? j
Implementation
factory Help.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Help(
links: switch (json['links']) {
null => [],
List<Object?> $1 => [for (final i in $1) Help_Link.fromJson(i)],
_ => throw const FormatException('"links" is not a list'),
},
);
}