Reason 1
Debug
when i debug i got print nothing
print("payDate: $payDate");
payDate:
Existing code
var payDate = json['pay_date'];
Solution
i change small p to capital P as data base field name is Pay_date
var payDate = json['Pay_date'];
Reason 2
print("influencerAdminId: $influencerAdminId");
influencerAdminId:[]
my existing code is
final String influencerAdminId;
============or===========
final List<String> influencerAdminId;
solution
final List<int> influencerAdminId;
Reason 3
print("statusDate: $statusDate");
in response if it is null
statusdate: {291: null},
Solution
var statusDate = json['statusdate'] != null
? (json['statusdate'] as Map).map((key, value) => MapEntry(key.toString(), safeString(value)))
: null;
Top comments (0)