LoyaltyPoints.fromJson constructor

LoyaltyPoints.fromJson(
  1. Map json_
)

Implementation

LoyaltyPoints.fromJson(core.Map json_)
    : this(
        balance: json_.containsKey('balance')
            ? LoyaltyPointsBalance.fromJson(
                json_['balance'] as core.Map<core.String, core.dynamic>)
            : null,
        label:
            json_.containsKey('label') ? json_['label'] as core.String : null,
        localizedLabel: json_.containsKey('localizedLabel')
            ? LocalizedString.fromJson(json_['localizedLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
      );