SKPriceLocaleWrapper.fromJson constructor

SKPriceLocaleWrapper.fromJson(
  1. Map<String, dynamic>? map
)

Constructing an instance from a map from the Objective-C layer.

This method should only be used with map values returned by SKProductWrapper.fromJson and SKProductDiscountWrapper.fromJson.

Implementation

factory SKPriceLocaleWrapper.fromJson(Map<String, dynamic>? map) {
  if (map == null) {
    return SKPriceLocaleWrapper(
        currencyCode: '', currencySymbol: '', countryCode: '');
  }
  return _$SKPriceLocaleWrapperFromJson(map);
}