Customer.fromJson constructor

Customer.fromJson(
  1. Map json_
)

Implementation

Customer.fromJson(core.Map json_)
    : this(
        customerOnboardingState: json_.containsKey('customerOnboardingState')
            ? CustomerOnboardingState.fromJson(
                json_['customerOnboardingState']
                    as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        isOnboarded: json_.containsKey('isOnboarded')
            ? json_['isOnboarded'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );