parse static method

Customer parse(
  1. Map<String, dynamic> parsedJSON
)

Implementation

static Customer parse(Map<String,dynamic> parsedJSON){
  return Customer(
    id: parsedJSON["id"],
    address: null,
    balance: parsedJSON["balance"],
    currency: parsedJSON["currency"],
    default_source: parsedJSON["default_source"],
    delinquent: parsedJSON["delinquent"],
    livemode: parsedJSON["livemode"],
    discount: parsedJSON["discount"],
    description: parsedJSON["description"],
    email: parsedJSON["email"],
    invoice_prefix: parsedJSON["invoice_prefix"],
    invoice_settings: parsedJSON["invoice_settings"],
    name: parsedJSON["name"],
    next_invoice_sequence: parsedJSON["next_invoice_sequence"],
    phone: parsedJSON["phone"],
    preferred_locales: parsedJSON["preferred_locales"],
    shipping: parsedJSON["shipping"],
  );
}