Map<String, Object?> toJson() => { if (period != null) 'period': period?.wire, if (store != null) 'store': store?.wire, };