From f698de71d63844af5c1c6c0c5145c7ee0af0c174 Mon Sep 17 00:00:00 2001 From: fremartini Date: Thu, 30 Nov 2023 19:39:42 +0100 Subject: [PATCH] update function names --- .../session/data/models/session_details_model.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/features/session/data/models/session_details_model.dart b/lib/features/session/data/models/session_details_model.dart index 42cff9f4c..6cd6db799 100644 --- a/lib/features/session/data/models/session_details_model.dart +++ b/lib/features/session/data/models/session_details_model.dart @@ -26,15 +26,15 @@ class SessionDetailsModel extends SessionDetails { } static Option _parseOption( - Map m, + Map jsonMap, String key, T Function(String) callback, ) { - if (!m.containsKey(key)) { + if (!jsonMap.containsKey(key)) { return none(); } - final val = m[key] as String; + final val = jsonMap[key] as String; if (val == 'null') { return none(); @@ -43,8 +43,8 @@ class SessionDetailsModel extends SessionDetails { return Some(callback(val)); } - static Duration _parseDuration(String s) { - final parts = s.split(':'); + static Duration _parseDuration(String duration) { + final parts = duration.split(':'); final hours = int.parse(parts[0]); final minutes = int.parse(parts[1]);