AssetPlatform.fromJson constructor

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

Constructs an AssetPlatform instance from a JSON map.

json is a map containing the asset platform data.

Implementation

AssetPlatform.fromJson(Map<String, dynamic> json)
    : this.id = Convert.toStr(json['id'], ''),
      this.chainIdentifier = Convert.toIntN(json['chain_identifier']),
      this.name = Convert.toStr(json['name'], ''),
      this.shortName = Convert.toStr(json['shortName'], '');