fromJson static method

SplashConfig? fromJson(
  1. String json
)

Parses a JSON String into a SplashConfig.

Returns null if parsing fails.

Implementation

static SplashConfig? fromJson(String json) {
  try {
    final map = jsonDecode(json) as Map<String, dynamic>;
    return fromMap(map);
  } catch (_) {
    return null;
  }
}