DescribeUsersResponse.fromJson constructor

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

Implementation

factory DescribeUsersResponse.fromJson(Map<String, dynamic> json) {
  return DescribeUsersResponse(
    marker: json['Marker'] as String?,
    totalNumberOfUsers: json['TotalNumberOfUsers'] as int?,
    users: (json['Users'] as List?)
        ?.whereNotNull()
        .map((e) => User.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}