MsgCreateContinuousFund.fromJson constructor

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

Implementation

factory MsgCreateContinuousFund.fromJson(Map<String, dynamic> json) {
  return MsgCreateContinuousFund(
    authority: json.valueAsString<String?>(
      'authority',
      acceptCamelCase: true,
    ),
    recipient: json.valueAsString<String?>(
      'recipient',
      acceptCamelCase: true,
    ),
    percentage: json.valueAsString<String?>(
      'percentage',
      acceptCamelCase: true,
    ),
    expiry: json.valueTo<google_protobuf_timestamp.Timestamp?, String>(
      key: 'expiry',
      parse: (v) => google_protobuf_timestamp.Timestamp.fromRfc3339(v),
      acceptCamelCase: true,
    ),
  );
}