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