DeploymentCommand.fromJson constructor

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

Implementation

factory DeploymentCommand.fromJson(Map<String, dynamic> json) {
  return DeploymentCommand(
    name: (json['Name'] as String).toDeploymentCommandName(),
    args: (json['Args'] as Map<String, dynamic>?)?.map((k, e) => MapEntry(
        k, (e as List).whereNotNull().map((e) => e as String).toList())),
  );
}