GoogleClientSecret.fromJsonString constructor
GoogleClientSecret.fromJsonString(
- String jsonString
Creates a new instance of GoogleClientSecret from a JSON string. The string is expected to follow the format described in GoogleClientSecret.fromJson.
Implementation
factory GoogleClientSecret.fromJsonString(final String jsonString) {
final data = jsonDecode(jsonString);
if (data is! Map<String, dynamic>) {
throw const FormatException('Not a JSON (map) object');
}
return GoogleClientSecret.fromJson(data);
}