toJson method

Map<String, dynamic> toJson()

Implementation

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