toJson method
Serializes the config to a JSON-encodable map.
Implementation
Map<String, dynamic> toJson() => {
'gates': gates.map((k, v) => MapEntry(k.name, v)),
'organizationId': organizationId,
'plan': plan.name,
'evaluatedAt': evaluatedAt.toIso8601String(),
};