PageBeanCustomFieldContextOption.fromJson constructor

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

Implementation

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