AlternativeBillingOnlyReportingDetailsWrapper.fromJson constructor

  1. @Deprecated('JSON serialization is not intended for public use, and will ' 'be removed in a future version.')
AlternativeBillingOnlyReportingDetailsWrapper.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 AlternativeBillingOnlyReportingDetailsWrapper.fromJson(
    Map<String, dynamic>? map) {
  if (map == null || map.isEmpty) {
    return const AlternativeBillingOnlyReportingDetailsWrapper(
      responseCode: BillingResponse.error,
      debugMessage: kInvalidAlternativeBillingReportingDetailsErrorMessage,
    );
  }
  return _$AlternativeBillingOnlyReportingDetailsWrapperFromJson(map);
}