Narrative constructor

Narrative({
  1. NarrativeStatus? status,
  2. String? div,
})

Constructs a new Narrative

Implementation

Narrative({
  NarrativeStatus? status,
  String? div,
}) : this.fromJson(
        JsonObject({
          if (status != null) statusField.name: JsonString(status.code),
          if (div != null) divField.name: JsonString(div),
        }),
      );