OrderOfCustomFieldOptions.fromJson constructor

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

Implementation

factory OrderOfCustomFieldOptions.fromJson(Map<String, Object?> json) {
  return OrderOfCustomFieldOptions(
    after: json[r'after'] as String?,
    customFieldOptionIds: (json[r'customFieldOptionIds'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    position: json[r'position'] != null
        ? OrderOfCustomFieldOptionsPosition.fromValue(
            json[r'position']! as String)
        : null,
  );
}