core.Map<core.String, core.dynamic> toJson() => { if (fromValue != null) 'fromValue': fromValue!.toJson(), if (toValue != null) 'toValue': toValue!.toJson(), };