toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the base batch identify data to a JSON representation.

Implementation

@override
/// Converts the base batch identify data to a JSON representation.
Map<String, dynamic> toJson() {
  return {
    ...super.toJson(),
    'type': type.value,
    if (traits != null) 'traits': traits,
  };
}