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