MsgUpdateUserAllocation.fromJson constructor
MsgUpdateUserAllocation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MsgUpdateUserAllocation.fromJson(Map<String, dynamic> json) {
return MsgUpdateUserAllocation(
admin: json.valueAsString<String?>('admin', acceptCamelCase: true),
airdropId: json.valueAsString<String?>(
'airdrop_id',
acceptCamelCase: true,
),
userAddress: json.valueAsString<String?>(
'user_address',
acceptCamelCase: true,
),
allocations:
(json.valueEnsureAsList<dynamic>(
'allocations',
acceptCamelCase: true,
)).map((e) => JsonParser.valueAsString<String>(e)).toList(),
);
}