fromJSON static method
Creates an Copies from its JSON representation.
Implementation
static Copies? fromJSON(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return Copies(
total: json.optPositiveInt("total"),
available: json.optPositiveInt("available"));
}