toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final grpcCode = this.grpcCode;
  final httpCode = this.httpCode;
  return {
    if (grpcCode != null) 'GrpcCode': grpcCode,
    if (httpCode != null) 'HttpCode': httpCode,
  };
}