Getting the nullable values from the map based on different data types
String? getOptString(String key) => this[key] != null ? this[key] as String : null;