ContainerFileList.fromJson constructor

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

Implementation

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