Map<String, dynamic> toJson() => { 'IsFlagged': isFlagged, 'Details': details.map((e) => e.toJson()).toList(), };