toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
  "status": status,
  "code": code,
  "message": message,
  "timestamp": timestamp,
  "data": data == null ? [] : List<dynamic>.from(data!.map((x) => x.toMap())),
};