TEst Dart and C#

testing C#

 

void main() {
  print('Hello, World!');
}

 

 

testing  Dart

import 'dart:convert';

void main() { ,    // Creating a Dart Map
  Map<String, dynamic> person = {
    'name': 'John Doe',
    'age': 30,
    'city': 'New York',
  };

  // Converting Dart Map to JSON string
  String jsonString = jsonEncode(person);
  print('JSON String: $jsonString');

  // Converting JSON string back to Dart Map
  Map<String, dynamic> decodedPerson = jsonDecode(jsonString);
  print('Decoded Person: $decodedPerson');

  // Accessing values in the decoded Map
  print('Name: ${decodedPerson['name']}');
  print('Age: ${decodedPerson['age']}');
  print('City: ${decodedPerson['city']}');
}

 

Up Next
    Ebook Download
    View all
    Learn
    View all