Map<String, Object?> toJson() => <String, Object?>{ 'resolutionStrategy': _resolutionStrategy.name, 'customModel': customModel?.toJson(), };