Gender.fromJson constructor

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

Implementation

factory Gender.fromJson(Map<String, dynamic> json) {
  return Gender(
    confidence: json['Confidence'] as double?,
    value: (json['Value'] as String?)?.toGenderType(),
  );
}