toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'body': body,
'user': {'login': author, 'id': author.hashCode.abs()},
'created_at': createdAt.toIso8601String(),
'updated_at': updatedAt.toIso8601String(),
};