Command.fromJson constructor

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

Implementation

factory Command.fromJson(Map<String, dynamic> json) {
  return Command(
    acknowledgedAt: json['AcknowledgedAt'] as String?,
    commandId: json['CommandId'] as String?,
    completedAt: json['CompletedAt'] as String?,
    createdAt: json['CreatedAt'] as String?,
    deploymentId: json['DeploymentId'] as String?,
    exitCode: json['ExitCode'] as int?,
    instanceId: json['InstanceId'] as String?,
    logUrl: json['LogUrl'] as String?,
    status: json['Status'] as String?,
    type: json['Type'] as String?,
  );
}