AppSpecification.fromJson constructor

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

Implementation

factory AppSpecification.fromJson(Map<String, dynamic> json) {
  return AppSpecification(
    imageUri: json['ImageUri'] as String,
    containerArguments: (json['ContainerArguments'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    containerEntrypoint: (json['ContainerEntrypoint'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}