SafetyTipInfo.fromJson constructor

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

Implementation

factory SafetyTipInfo.fromJson(Map<String, dynamic> json) {
  return SafetyTipInfo(
    safetyTipStatus: SafetyTipStatus.fromJson(
      json['safetyTipStatus'] as String,
    ),
    safeUrl: json.containsKey('safeUrl') ? json['safeUrl'] as String : null,
  );
}