From 0448178dad457dc577c04515f68dfbb3302cbb67 Mon Sep 17 00:00:00 2001 From: Alexander Dahlberg Date: Tue, 31 Mar 2026 13:51:32 +0200 Subject: [PATCH] docs: Fix code indentation on Caching and Serialization pages --- docs/06-concepts/03-serialization.md | 10 +++++----- docs/06-concepts/08-caching.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/06-concepts/03-serialization.md b/docs/06-concepts/03-serialization.md index 438af210..1d2cb8cd 100644 --- a/docs/06-concepts/03-serialization.md +++ b/docs/06-concepts/03-serialization.md @@ -6,9 +6,9 @@ For most purposes, you will want to use Serverpod's native serialization. Howeve ```dart Map toJson() { - return { + return { name: 'John Doe', - }; + }; } ``` @@ -16,11 +16,11 @@ For most purposes, you will want to use Serverpod's native serialization. Howeve ```dart factory ClassName.fromJson( - Map json, + Map json, ) { - return ClassName( + return ClassName( name: json['name'] as String, - ); + ); } ``` diff --git a/docs/06-concepts/08-caching.md b/docs/06-concepts/08-caching.md index 89c3ffff..37be9a81 100644 --- a/docs/06-concepts/08-caching.md +++ b/docs/06-concepts/08-caching.md @@ -87,7 +87,7 @@ Future getUserData(Session session, int userId) async { () async => UserData.db.findById(session, userId), lifetime: Duration(minutes: 5), ), - ); + ); // Return the user data to the client return userData;