CommandPlugin.fromJson constructor

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

Implementation

factory CommandPlugin.fromJson(Map<String, dynamic> json) {
  return CommandPlugin(
    name: json['Name'] as String?,
    output: json['Output'] as String?,
    outputS3BucketName: json['OutputS3BucketName'] as String?,
    outputS3KeyPrefix: json['OutputS3KeyPrefix'] as String?,
    outputS3Region: json['OutputS3Region'] as String?,
    responseCode: json['ResponseCode'] as int?,
    responseFinishDateTime: timeStampFromJson(json['ResponseFinishDateTime']),
    responseStartDateTime: timeStampFromJson(json['ResponseStartDateTime']),
    standardErrorUrl: json['StandardErrorUrl'] as String?,
    standardOutputUrl: json['StandardOutputUrl'] as String?,
    status: (json['Status'] as String?)?.toCommandPluginStatus(),
    statusDetails: json['StatusDetails'] as String?,
  );
}