PageBeanFieldConfigurationItem.fromJson constructor

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

Implementation

factory PageBeanFieldConfigurationItem.fromJson(Map<String, Object?> json) {
  return PageBeanFieldConfigurationItem(
    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) => FieldConfigurationItem.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}