fromJson static method

PeamanChatFile fromJson(
  1. Map<String, dynamic> data
)

Implementation

static PeamanChatFile fromJson(final Map<String, dynamic> data) {
  return PeamanChatFile(
    id: data['id'],
    urls: List<PeamanFileUrl>.from(
      (data['urls'] ?? []).map((e) => PeamanFileUrl.fromJson(e)),
    ),
    createdAt: data['created_at'],
    updatedAt: data['updated_at'],
  );
}