LoginFlow.fromJson(Map<String, Object?> json) : type = ((v) => v != null ? v as String : null)(json['type']);