toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (timestampMs != null) {
    _json['timestampMs'] = timestampMs;
  }
  if (organizationId != null) {
    _json['organizationId'] = organizationId;
  }
  _json['userId'] = userId;
  if (userName != null) {
    _json['userName'] = userName;
  }
  if (userEmail != null) {
    _json['userEmail'] = userEmail;
  }
  if (userTagIds != null) {
    _json['userTagIds'] = userTagIds;
  }
  if (userPhoneNumber != null) {
    _json['userPhoneNumber'] = userPhoneNumber;
  }
  return _json;
}