BusinessIdentity.fromJson constructor

BusinessIdentity.fromJson(
  1. Map json_
)

Implementation

BusinessIdentity.fromJson(core.Map json_)
  : this(
      blackOwned: json_.containsKey('blackOwned')
          ? IdentityAttribute.fromJson(
              json_['blackOwned'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      latinoOwned: json_.containsKey('latinoOwned')
          ? IdentityAttribute.fromJson(
              json_['latinoOwned'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      name: json_['name'] as core.String?,
      promotionsConsent: json_['promotionsConsent'] as core.String?,
      smallBusiness: json_.containsKey('smallBusiness')
          ? IdentityAttribute.fromJson(
              json_['smallBusiness'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      veteranOwned: json_.containsKey('veteranOwned')
          ? IdentityAttribute.fromJson(
              json_['veteranOwned'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      womenOwned: json_.containsKey('womenOwned')
          ? IdentityAttribute.fromJson(
              json_['womenOwned'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );