DescribeCommentsResponse.fromJson constructor

DescribeCommentsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DescribeCommentsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeCommentsResponse(
    comments: (json['Comments'] as List?)
        ?.whereNotNull()
        .map((e) => Comment.fromJson(e as Map<String, dynamic>))
        .toList(),
    marker: json['Marker'] as String?,
  );
}