TitleOptions.fromJson constructor
TitleOptions.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TitleOptions.fromJson(Map<String, dynamic> json) => TitleOptions(
gold: json["gold"],
blue: json["blue"],
silver: json["silver"],
black: json["black"],
vertical: json["vertical"],
horizontal: json["horizontal"],
pill: json["pill"],
rect: json["rect"],
responsive: json["responsive"],
small: json["small"],
medium: json["medium"],
large: json["large"],
flatRate: json["Flat rate"] == null
? null
: FlatRate.fromJson(json["Flat rate"]),
freeShipping: json["Free shipping"] == null
? null
: FreeShipping.fromJson(json["Free shipping"]),
localPickup: json["Local pickup"] == null
? null
: LocalPickup.fromJson(json["Local pickup"]),
live: json["live"],
sandbox: json["sandbox"],
billing: json["Billing"],
login: json["Login"],
dark: json["dark"],
light: json["light"],
lightOutline: json["light-outline"],
optionsDefault: json["default"],
buy: json["buy"],
donate: json["donate"],
sale: json["sale"],
authorization: json["authorization"],
add: json["add"],
drop: json["drop"],
);