Target.fromJson constructor

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

Implementation

factory Target.fromJson(Map<String, dynamic> json) {
  return Target(
    type: (json['Type'] as String).toTargetType(),
    id: json['Id'] as String?,
  );
}