MsgCreateVestingPool.fromJson constructor
MsgCreateVestingPool.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MsgCreateVestingPool.fromJson(Map<String, dynamic> json) {
return MsgCreateVestingPool(
owner: json.valueAsString<String?>('owner', acceptCamelCase: true),
name: json.valueAsString<String?>('name', acceptCamelCase: true),
amount: json.valueAsString<String?>('amount', acceptCamelCase: true),
duration: json.valueTo<google_protobuf_duration.Duration?, String>(
key: 'duration',
parse: (v) => google_protobuf_duration.Duration.fromString(v),
acceptCamelCase: true,
),
vestingType: json.valueAsString<String?>(
'vesting_type',
acceptCamelCase: true,
),
);
}