MythicKeystoneAffixesIndexResponse.fromJson constructor

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

Creates an instance of MythicKeystoneAffixesIndexResponse from a JSON map.

Implementation

factory MythicKeystoneAffixesIndexResponse.fromJson(
  Map<String, dynamic> json,
) => MythicKeystoneAffixesIndexResponse(
  links: Links.fromJson(json['_links']),
  affixes: json['affixes'] == null
      ? <KeyNameIdData>[]
      : List<KeyNameIdData>.from(
          json['affixes']!.map((dynamic x) => KeyNameIdData.fromJson(x)),
        ),
);