toJson method

Map<String, Object?> toJson()

Implementation

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