QueryTotalStrdBurnedResponse.fromJson constructor

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

Implementation

factory QueryTotalStrdBurnedResponse.fromJson(Map<String, dynamic> json) {
  return QueryTotalStrdBurnedResponse(
    totalBurned: json.valueAsString<String?>(
      'total_burned',
      acceptCamelCase: true,
    ),
    protocolBurned: json.valueAsString<String?>(
      'protocol_burned',
      acceptCamelCase: true,
    ),
    totalUserBurned: json.valueAsString<String?>(
      'total_user_burned',
      acceptCamelCase: true,
    ),
  );
}