toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'modelClass': modelClass,
      'event': event,
      'modelKey': modelKey,
      'time': time.toIso8601String(),
      if (attributes != null) 'attributes': attributes,
    };