DriveComment.fromMap constructor
DriveComment.fromMap(
- Map<String, dynamic> map
)
Implementation
factory DriveComment.fromMap(Map<String, dynamic> map) {
return DriveComment(
position: map['position'],
creator:
map['creator'] == null ? null : DriveUser.fromMap(map['creator']),
description: map['description'],
createdTime: map['createdTime'] != null
? DateTime.parse(map['createdTime'])
: null,
deleted: map['deleted'],
htmlDescription: map['htmlDescription'],
replies: map['replies'] != null
? List<DriveReply>.from(
map['replies']?.map(
(Map<String, dynamic> x) => DriveReply.fromMap(x),
),
)
: null,
id: map['id'],
category: map['category'],
editedTime:
map['editedTime'] != null ? DateTime.parse(map['editedTime']) : null,
quotedComment: map['quotedComment'] == null
? null
: QuotedContent.fromMap(map['quotedComment']),
resolved: map['resolved'],
);
}