HeldItems.fromJson constructor

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

Implementation

HeldItems.fromJson(Map<String, dynamic> json) {
  item = json['item'] != null
      ? new NamedAPIResource.fromJson(json['item'])
      : null;
  if (json['version_details'] != null) {
    versionDetails = new List<VersionDetails>();
    json['version_details'].forEach((v) {
      versionDetails.add(new VersionDetails.fromJson(v));
    });
  }
}