toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountId != null) 'accountId': accountId!,
      if (accountName != null) 'accountName': accountName!,
      if (etag != null) 'etag': etag!,
      if (kind != null) 'kind': kind!,
      if (profileId != null) 'profileId': profileId!,
      if (subAccountId != null) 'subAccountId': subAccountId!,
      if (subAccountName != null) 'subAccountName': subAccountName!,
      if (userName != null) 'userName': userName!,
    };