Skip to content

Instantly share code, notes, and snippets.

@0xabdou
Created July 29, 2020 15:13
Show Gist options
  • Save 0xabdou/d1ae7e15cd6f89bf72852c6765c0be1b to your computer and use it in GitHub Desktop.
Save 0xabdou/d1ae7e15cd6f89bf72852c6765c0be1b to your computer and use it in GitHub Desktop.
void main() {
final json = <String, dynamic>{
'price1': 1,
'price2': 1.1,
};
final price1 = double.parse(json['price1'].toString());
final price2 = double.parse(json['price2'].toString());
print(price1);
print(price2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment