toJson method

  1. @override
dynamic toJson()
override

Implementation

@override
dynamic toJson() {
  final result = <String, dynamic>{};

  if (custom != null) {
    result['custom'] = custom;
  }

  if (origin != null) {
    result['origin'] = origin;
  }

  if (sender != null) {
    result['sender'] = sender;
  }

  if (type != null) {
    result['type'] = type;
  }

  return result;
}