ParameterObject.fromJson constructor

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

Implementation

factory ParameterObject.fromJson(Map<String, dynamic> json) {
  return ParameterObject(
    attributes: (json['attributes'] as List)
        .whereNotNull()
        .map((e) => ParameterAttribute.fromJson(e as Map<String, dynamic>))
        .toList(),
    id: json['id'] as String,
  );
}