ContractMethod.fromJson constructor

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

Implementation

factory ContractMethod.fromJson(Map<String, dynamic> json) => ContractMethod(
  name: json['name'] as String,
  params: (json['params'] as List? ?? const [])
      .map((e) => e.toString())
      .toList(growable: false),
  returns: json['returns'] as String,
);