Attribute.fromJson constructor

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

Implementation

factory Attribute.fromJson(Map<String, dynamic> json) {
  return Attribute(
    name: json['name'] as String,
    targetId: json['targetId'] as String?,
    targetType: (json['targetType'] as String?)?.toTargetType(),
    value: json['value'] as String?,
  );
}