fromJson static method

RoomContainer fromJson(
  1. Map<String, dynamic> json
)

Implementation

static RoomContainer fromJson(Map<String, dynamic> json) {
  return RoomContainer(
    id: json["id"],
    image: json["image"],
    manifest: json["manifest"],
    command: (json["command"] as List).map((e) => e as String).toList(),
    entrypoint: (json["entrypoint"] as List?)?.map((e) => e as String).toList(),
    environment: {for (final entry in (json["env"] as Map).entries) entry.key: entry.value},
    startedBy: ParticipantInfo(id: json["started_by"]["id"], name: json["started_by"]["name"]),
  );
}