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