LoyaltyPointsBalance.fromJson constructor

LoyaltyPointsBalance.fromJson(
  1. Map json_
)

Implementation

LoyaltyPointsBalance.fromJson(core.Map json_)
    : this(
        double: json_.containsKey('double')
            ? (json_['double'] as core.num).toDouble()
            : null,
        int: json_.containsKey('int') ? json_['int'] as core.int : null,
        money: json_.containsKey('money')
            ? Money.fromJson(
                json_['money'] as core.Map<core.String, core.dynamic>)
            : null,
        string: json_.containsKey('string')
            ? json_['string'] as core.String
            : null,
      );