BillingResultWrapper.fromJson constructor

  1. @Deprecated('JSON serialization is not intended for public use, and will ' 'be removed in a future version.')
BillingResultWrapper.fromJson(
  1. Map<String, dynamic>? map
)

Constructs an instance of this from a key value map of data.

The map needs to have named string keys with values matching the names and types of all of the members on this class.

Implementation

@Deprecated('JSON serialization is not intended for public use, and will '
    'be removed in a future version.')
factory BillingResultWrapper.fromJson(Map<String, dynamic>? map) {
  if (map == null || map.isEmpty) {
    return const BillingResultWrapper(
        responseCode: BillingResponse.error,
        debugMessage: kInvalidBillingResultErrorMessage);
  }
  return _$BillingResultWrapperFromJson(map);
}