TargetSummary.fromJson constructor Null safety

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

Implementation

factory TargetSummary.fromJson(Map<String, dynamic> json) {
  return TargetSummary(
    targetAddress: json['TargetAddress'] as String?,
    targetStatus: (json['TargetStatus'] as String?)?.toTargetStatus(),
    targetType: json['TargetType'] as String?,
  );
}