OpenAIFileList.fromJson constructor

OpenAIFileList.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory OpenAIFileList.fromJson(Map<String, dynamic> j) => OpenAIFileList(
      object: j['object'] as String, // "list"
      data: (j['data'] as List).cast<Map<String, dynamic>>().map(OpenAIFile.fromJson).toList(),
      hasMore: j['has_more'] as bool? ?? false,
      firstId: j['first_id'] as String?,
      lastId: j['last_id'] as String?,
    );