HiveDatabaseOptions.fromJson constructor

HiveDatabaseOptions.fromJson(
  1. Map json_
)

Implementation

HiveDatabaseOptions.fromJson(core.Map json_)
    : this(
        locationUri: json_.containsKey('locationUri')
            ? json_['locationUri'] as core.String
            : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );