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