Parameter.fromJson constructor

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

Implementation

factory Parameter.fromJson(Map<String, dynamic> json) {
  return Parameter(
    allowedValues: json['AllowedValues'] as String?,
    changeType: (json['ChangeType'] as String?)?.toChangeType(),
    dataType: json['DataType'] as String?,
    description: json['Description'] as String?,
    isModifiable: (json['IsModifiable'] as String?)?.toIsModifiable(),
    nodeTypeSpecificValues: (json['NodeTypeSpecificValues'] as List?)
        ?.whereNotNull()
        .map((e) => NodeTypeSpecificValue.fromJson(e as Map<String, dynamic>))
        .toList(),
    parameterName: json['ParameterName'] as String?,
    parameterType: (json['ParameterType'] as String?)?.toParameterType(),
    parameterValue: json['ParameterValue'] as String?,
    source: json['Source'] as String?,
  );
}