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