toJsonString method Null safety

String toJsonString(
  1. Location? location
)

String representation of Location as Json

Implementation

static String toJsonString(Location? location) =>
    jsonEncode(toJson(location));