toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final screens = <String, Map<String, dynamic>?>{
    'instructions': instructionsTheme?.toJson(),
    'permission': permissionTheme?.toJson(),
    'loading': loadingTheme?.toJson(),
    'result': resultTheme?.toJson(),
    'fortface': fortfaceTheme?.toJson(),
    'facetec': facetecTheme?.toJson(),
    'facetecLowLight': facetecLowLightTheme?.toJson(),
    'iproov': iproovTheme?.toJson(),
  };
  return {
    for (final entry in screens.entries)
      if (entry.value != null) entry.key: entry.value,
  };
}