Content.fromJson constructor

Content.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Content.fromJson(Map<String, dynamic> json) => Content(
      xCoordinate: json["x_coordinate"],
      yCoordinate: json["y_coordinate"],
      heading: json["heading"],
      headingTextColor: json["headingTextColor"],
      headingFontSize: json["headingFontSize"],
      headingFontWeight: json["headingFontWeight"],
      headingHasAdvancedOptions: json["headingHasAdvancedOptions"],
      headingAlignment: json["headingAlignment"],
      headingMargin: json["headingMargin"] == null
          ? null
          : Margin.fromJson(json["headingMargin"]),
      body: json["body"],
      bodyTextColor: json["bodyTextColor"],
      bodyFontSize: json["bodyFontSize"],
      bodyFontWeight: json["bodyFontWeight"],
      bodyHasAdvancedOptions: json["bodyHasAdvancedOptions"],
      bodyAlignment: json["bodyAlignment"],
      bodyMargin: json["bodyMargin"] == null
          ? null
          : Margin.fromJson(json["bodyMargin"]),
      id: json["_id"],
    );