toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['result'] = result?.result;
  map['error_code'] = errorCode;
  map['error_message'] = errorMessage;
  if (errors != null) {
    map['errors'] = errors?.map((v) => v.toJson()).toList();
  }
  return map;
}