toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (endpoint != null) {
    _json[r'endpoint'] = endpoint;
  }
  _json[r'type'] = type;
  return _json;
}