DriveCommentList.fromMap constructor

DriveCommentList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory DriveCommentList.fromMap(Map<String, dynamic> map) {
  return DriveCommentList(
    category: map['category'],
    comments: map['comments'] != null
        ? List<DriveComment>.from(
            map['comments']?.map((dynamic x) => DriveComment.fromMap(x)),
          )
        : <DriveComment>[],
    nextCursor: map['nextCursor'],
  );
}