Variable.fromJson constructor

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

Implementation

factory Variable.fromJson(Map<String, dynamic> json) {
  return Variable(
    name: json['name'] as String,
    datasetContentVersionValue: json['datasetContentVersionValue'] != null
        ? DatasetContentVersionValue.fromJson(
            json['datasetContentVersionValue'] as Map<String, dynamic>)
        : null,
    doubleValue: json['doubleValue'] as double?,
    outputFileUriValue: json['outputFileUriValue'] != null
        ? OutputFileUriValue.fromJson(
            json['outputFileUriValue'] as Map<String, dynamic>)
        : null,
    stringValue: json['stringValue'] as String?,
  );
}