BlogPost class

Constructors

BlogPost({required int id, required String title, required String slug, required String excerpt, required String content, String? featuredImage, required String author, required bool isPublished, required DateTime publishedAt, required DateTime createdAt, required DateTime updatedAt, required int appId})
BlogPost.fromJson(Map<String, dynamic> json)
factory

Properties

appId int
final
author String
final
content String
final
createdAt DateTime
final
excerpt String
final
featuredImage String?
final
hashCode int
The hash code for this object.
no setterinherited
id int
final
isPublished bool
final
publishedAt DateTime
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String
final
title String
final
updatedAt DateTime
final

Methods

copyWith({int? id, String? title, String? slug, String? excerpt, String? content, String? featuredImage, String? author, bool? isPublished, DateTime? publishedAt, DateTime? createdAt, DateTime? updatedAt, int? appId}) BlogPost
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited