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