fromJSON static method

Copies? fromJSON(
  1. Map<String, dynamic>? json
)

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"));
}