toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    "4xl": f4xl,
    "3xl": f3xl,
    "2xl": f2xl,
    "xl": xl,
    "lg": lg,
    "md": md,
    "sm": sm,
    "xs": xs,
  };
}