SystemInfoEntity.fromJson constructor

SystemInfoEntity.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SystemInfoEntity.fromJson(Map<String, Object?> json) {
  return SystemInfoEntity(
    cloudId: json[r'cloudId'] as String? ?? '',
    commitHash: json[r'commitHash'] as String? ?? '',
    baseUrl: json[r'baseUrl'] as String?,
    edition: json[r'edition'] as String?,
    siteTitle: json[r'siteTitle'] as String?,
    defaultLocale: json[r'defaultLocale'] as String?,
    defaultTimeZone: json[r'defaultTimeZone'] as String?,
  );
}