toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (address != null) {
    _json['address'] = address;
  }
  if (errorType != null) {
    _json['errorType'] = errorType;
  }
  if (displayMessage != null) {
    _json['displayMessage'] = displayMessage;
  }
  if (unknown != null) {
    _json['unknown'] = unknown?.toJson();
  }
  if (native != null) {
    _json['native'] = native?.toJson();
  }
  if (custom != null) {
    _json['custom'] = custom?.toJson();
  }
  return _json;
}