fromJson static method

MetadataV14 fromJson(
  1. Map<String, dynamic> map
)

Creates Class Object from Json

Implementation

static MetadataV14 fromJson(Map<String, dynamic> map) {
  return MetadataV14(
      type: map['type'],
      lookup: PortableRegistryV14.fromJson(map['lookup']),
      pallets: (map['pallets'] as List)
          .map((value) => PalletMetadataV14.fromJson(value))
          .toList(growable: false),
      extrinsic: ExtrinsicMetadataV14.fromJson(map['extrinsic']));
}