toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (valid != null) {
    _json['valid'] = valid;
  }
  if (sessionType != null) {
    _json['sessionType'] = sessionType;
  }
  if (email != null) {
    _json['email'] = email;
  }
  if (organizationId != null) {
    _json['organizationId'] = organizationId;
  }
  if (userId != null) {
    _json['userId'] = userId;
  }
  return _json;
}