Featured post

-Write C program to find even and odd number using macro

-Write C program to find even and odd number using macro #include<stdio.h> #define number(n)((n%2==0)?1:0) int main() { int num; printf("enter any number"); scanf("%d",&num); if(number(num)) printf("number is even"); else printf("number is odd"); return 0; } ***************************Output*********************** amr@amrj-virtual-machine:~$ gccevenodd.c amr@samr-virtual-machine:~$ ./a.out enter any number 2 number is evensmj@amr-virtual-machine:~$

Unhandled Exception: FormatException: Invalid radix-10 number (at character 1) E/flutter (23894): null

  Unhandled Exception: FormatException: Invalid radix-10 number (at character 1)

E/flutter (23894): null

this Errro showing beacuse you not parsing  json parsing.

for json Parsing: - dart variable like char, double or int another json parsing like below showing here
Ex: - int.parse(json['demo'].toString);
just like parse the in the model class in flutter 

Solution:

  if (json['minimum_order_qty'] != null) {
      _minimumOrderQty = int.parse(json['minimum_order_qty'].toString());
    }

Comments

Post a Comment

Welcome to FlutterForge please write your Query

Popular posts from this blog

How to OCR Text Extraction in Flutter Using Google ML Kit

BCA (SCIENCE) JAVA PRACTICAL SLIPS PAGES.(JAVA) UNIVERSITY OF PUNE

Write a c++ program to find the Function overloading example in c++(Addition, Subtraction,Multiplication).