VersionDetails.fromJson constructor

VersionDetails.fromJson(
  1. Map<String, dynamic> json
)

Implementation

VersionDetails.fromJson(Map<String, dynamic> json) {
  rarity = json['rarity'];
  version = json['version'] != null
      ? new NamedAPIResource.fromJson(json['version'])
      : null;
}