Avatars.fromJson constructor
Implementation
factory Avatars.fromJson(Map<String, Object?> json) {
return Avatars(
custom: (json[r'custom'] as List<Object?>?)
?.map((i) =>
Avatar.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
system: (json[r'system'] as List<Object?>?)
?.map((i) =>
Avatar.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}