PPOrder constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)
const PPOrder({
  1. required PPOrderIntent intent,
  2. PPProcessingInstruction? processingInstruction,
  3. @JsonKey(name: 'application_context') PPOrderAppContext? appContext,
  4. @JsonKey(name: 'purchase_units') required List<PPPurchaseUnit> purchaseUnitList,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)
const factory PPOrder({
  required PPOrderIntent intent,
  PPProcessingInstruction? processingInstruction,
  @JsonKey(name: 'application_context') PPOrderAppContext? appContext,
  @JsonKey(name: 'purchase_units')
      required List<PPPurchaseUnit> purchaseUnitList,
}) = _PPOrder;