PageBeanUserDetails.fromJson constructor

PageBeanUserDetails.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PageBeanUserDetails.fromJson(Map<String, Object?> json) {
  return PageBeanUserDetails(
    isLast: json[r'isLast'] as bool? ?? false,
    maxResults: (json[r'maxResults'] as num?)?.toInt(),
    nextPage: json[r'nextPage'] as String?,
    self: json[r'self'] as String?,
    startAt: (json[r'startAt'] as num?)?.toInt(),
    total: (json[r'total'] as num?)?.toInt(),
    values: (json[r'values'] as List<Object?>?)
            ?.map((i) =>
                UserDetails.fromJson(i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}