InlineDetailsInput.fromJson constructor

InlineDetailsInput.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory InlineDetailsInput.fromJson(
  Map<String, Object?> json,
) =>
    InlineDetailsInput(
      about: json["about"] == null ? null : json["about"] as String,
      customData: json["custom_data"] == null
          ? null
          : core.CustomDataInput.fromJson(json["custom_data"]),
      reference:
          json["reference"] == null ? null : json["reference"] as String,
      taxCode: json["tax_code"] == null ? null : json["tax_code"] as String,
      name: json["name"] as String,
      price: inttegro_price.Params.fromJson(
          (json["price"] as Map).cast<String, Object?>()),
      quantity: (json["quantity"] as num).toInt(),
      type: Type.fromJson(json["type"]),
    );