Abilities.fromJson constructor

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

Implementation

Abilities.fromJson(Map<String, dynamic> json) {
  isHidden = json['is_hidden'];
  slot = json['slot'];
  ability = json['ability'] != null
      ? new NamedAPIResource.fromJson(json['ability'])
      : null;
}