toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (authorAttribution != null) 'authorAttribution': authorAttribution!,
      if (name != null) 'name': name!,
      if (originalText != null) 'originalText': originalText!,
      if (publishTime != null) 'publishTime': publishTime!,
      if (rating != null) 'rating': rating!,
      if (relativePublishTimeDescription != null)
        'relativePublishTimeDescription': relativePublishTimeDescription!,
      if (text != null) 'text': text!,
    };