toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'project_id': projectId,
  'key': key,
  'name': name,
  if (displayName != null) 'display_name': displayName,
  if (email != null) 'email': email,
  'description': description,
  'metadata': metadata,
  'annotations': annotations,
  if (createdAt != null) 'created_at': createdAt!.toIso8601String(),
  if (updatedAt != null) 'updated_at': updatedAt!.toIso8601String(),
  if (createdByUserId != null) 'created_by_user_id': createdByUserId,
};