toMap method

Map<String, dynamic> toMap()

This is will help us to create Map Data

Implementation

Map<String, dynamic> toMap() {
  final result = <String, dynamic>{};

  result.addAll({'language': language});
  result.addAll({'country': country});
  result.addAll({'variant': variant});

  return result;
}