PalletConstantMetadata.fromJson constructor

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

Implementation

factory PalletConstantMetadata.fromJson(Map<String, dynamic> json) {
  return PalletConstantMetadata(
    name: json['name'],
    type: json['ty'],
    value: Uint8List.fromList((json['value'] as List).cast<int>()),
    docs: (json['docs'] as List).cast<String>(),
  );
}