toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (deviceId != null) {
    _json[r'device_id'] = deviceId;
  }
  if (expiresAt != null) {
    _json[r'expires_at'] = expiresAt;
  }
  if (id != null) {
    _json[r'id'] = id;
  }
  if (isOauth != null) {
    _json[r'is_oauth'] = isOauth;
  }
  if (lastActivityAt != null) {
    _json[r'last_activity_at'] = lastActivityAt;
  }
  if (props != null) {
    _json[r'props'] = props;
  }
  if (roles != null) {
    _json[r'roles'] = roles;
  }
  _json[r'team_members'] = teamMembers;
  if (token != null) {
    _json[r'token'] = token;
  }
  if (userId != null) {
    _json[r'user_id'] = userId;
  }
  return _json;
}